docker run -d --hostname rabbit1 --name rabbitmq1 --restart=always --privileged=true  -p1883:1883 -p4369:4369 -p5671:5671 -p5672:5672 -p8883:8883 -p15672:15672 -p25672:25672 -p15675:15675 -e RABBITMQ_ERLANG_COOKIE='rabbitcookie' -v /data/rabbitmq1/log:/var/log/rabbitmq/ rabbitmq:3.7.8-management \
&& docker exec rabbitmq1 rabbitmq-plugins enable rabbitmq_management \
&& docker exec rabbitmq1 rabbitmq-plugins enable rabbitmq_mqtt     \
&& docker exec rabbitmq1 rabbitmq-plugins enable rabbitmq_web_mqtt \
&& docker run -d --hostname rabbit2 --name rabbitmq2 --restart=always --privileged=true  -p5673:5672 -p15673:15672 --link rabbitmq1:rabbit1 -e RABBITMQ_ERLANG_COOKIE='rabbitcookie' -v /data/rabbitmq2/log:/var/log/rabbitmq/ rabbitmq:3.7.8-management \
&& docker exec rabbitmq2 rabbitmq-plugins enable rabbitmq_mqtt     \
&& docker exec rabbitmq2 rabbitmq-plugins enable rabbitmq_web_mqtt \
&& docker run -d --hostname rabbit3 --name rabbitmq3 --restart=always --privileged=true  -p5674:5672 -p15674:15672 --link rabbitmq1:rabbit1 --link rabbitmq2:rabbit2 -e RABBITMQ_ERLANG_COOKIE='rabbitcookie' -v /data/rabbitmq2/log:/var/log/rabbitmq/ rabbitmq:3.7.8-management \
&& docker exec rabbitmq3 rabbitmq-plugins enable rabbitmq_mqtt     \
&& docker exec rabbitmq3 rabbitmq-plugins enable rabbitmq_web_mqtt